using UnityEngine;
using UnityEngine.UI;

public class IconHandler : MonoBehaviour
{
    [SerializeField] private Color color;
    [SerializeField] private Image[] icons;

    public void UseShot(int iconsNumber)
    {
        for (int i = 0; i < icons.Length; i++)
        {
            if (i + 1 == iconsNumber)
            {
                icons[i].color = color;
                return;
            }
        }
    }
}
